home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HyperLib 1997 Winter - Disc 1
/
HYPERLIB-1997-Winter-CD1.ISO.7z
/
HYPERLIB-1997-Winter-CD1.ISO
/
オンラインウェア
/
COM
/
ISDNSerial 1.0.2.sit
/
ISDNSerial 1.0.2
/
ISDN
next >
Wrap
Text File
|
1995-11-06
|
2KB
|
108 lines
! "ISDN Serial driver"
@ORIGINATE
@ANSWER
!
@LABEL 1
serreset 57600, 0, 8, 1
setspeed 64000
hsreset 0 0 0 0 0 0
!
! The ISDN driver is designed to do everything based on one command. This is
! necessary since commands are executed only at tasks time, and when ARA is
! setting up to answer calls during boot, there may be a very long delay before
! there is any task time. Hence we issue the one command and wait forever.
!
ifANSWER 30
note "Dialing ^1" 3
!
write "AT*D '' '' '^1'¥13"
matchstr 1 11 "CONNECT¥13¥10"
matchstr 2 50 "NO CARRIER¥13¥10"
matchstr 3 50 "ERROR¥13¥10"
matchstr 4 52 "NO DIALTONE¥13¥10"
matchstr 5 53 "BUSY¥13¥10"
matchstr 6 54 "NO ANSWER¥13¥10"
matchread 1200
jump 59
!
@LABEL 11
note "Communicating via ISDN." 3
jump 15
!
@LABEL 15
ifANSWER 16
pause 10
exit 0
!
@LABEL 16
@LABEL 17
exit 0
!
! @ANSWER
! Set up the modem to answer
@LABEL 30
write "AT*D '' '' ''¥13"
!
@LABEL 31
matchstr 1 32 "RING¥13¥10"
matchstr 2 11 "CONNECT¥13¥10"
matchstr 3 50 "NO CARRIER¥13¥10"
matchstr 4 50 "ERROR¥13¥10"
matchstr 5 52 "NO DIALTONE¥13¥10"
matchstr 6 53 "BUSY¥13¥10"
matchstr 7 54 "NO ANSWER¥13¥10"
matchread 6000
jump 31
!
@LABEL 32
userhook 1
note "Answering phoneノ" 2
jump 31
!
! 50: error messages
!
@LABEL 50
exit -6021 "Unable to make an ISDN connection, check configuration and try again."
!
@LABEL 52
exit -6020
!
@LABEL 53
exit -6022
!
@LABEL 54
exit -6023
!
@LABEL 59
exit -6019 "The ISDN software is not responding, it may not be configured correctly."
!
! Hang up the modem
!
@HANGUP
@LABEL 60
settries 0
write "+++"
pause 5
!
! Try to reset the modem. If ARA is not making idle time calls, this may fail with a
! PENDING message the second time we do it. In this case we assume it will get done
! eventually and quit.
!
@LABEL 62
write "ATZ¥13"
matchclr
matchstr 1 63 "OK¥13¥10"
matchstr 2 59 "ERROR¥13¥10"
matchstr 3 63 "PENDING¥13¥10"
matchread 30
inctries
iftries 3 64
Jump 62
!
@LABEL 63
!
@LABEL 64
exit 0